package cn.cy.structure.decorator.pattern;

/**
 * @author yangxq
 * @desc
 * @date 2025-05-12
 */
public class SugarDecorator extends CoffeeDecorator {

    public SugarDecorator(Coffee coffee) {
        super(coffee);
    }

    public String getDescription() {
        return coffee.getDescription() + ", Sugar";
    }

    public double cost() {
        return coffee.cost() + 0.20; // 糖附加费用
    }

}
